package com.oa.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Date;

/**
 * 员工表的pojo类
 *
 * @Author: 一拳超人
 * @Date: 2021/10/2
 */

@TableName("emp")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class Emp implements Serializable {
    private static final long serialVersionUID = -994090515885887028L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String empName;
    private String empPassword;
    private String empId;
    private String phone;
    private String qq;
    private String wechat;
    private String email;
    private Boolean empStatus;
    private Date hiredate;
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date resignDate;
    private String edu;
    private Integer positionId;
    private Integer depId;
    private String empPhoto;
    @TableField(exist = false)
    private Integer remember;
    @TableField(exist = false)
    private Department department;
    @TableField(exist = false)
    private Position position;
    @TableField(exist = false)
    private String depName;
    @TableField(exist = false)
    private String positionName;
}
